package com.lzy.crm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lzy.crm.base.mybatis.BaseMapper;
import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.dao.criteria.CrowdCriteria;
import com.lzy.crm.domain.Crowd;

public interface CrowdMapper extends BaseMapper<Crowd, CrowdCriteria>{
	
	
	/**
	 * 获取自己加入的牌友圈信息
	 * @param unionId
	 * @return
	 */
	public List<Crowd> getJoinCrowdListByUnionId(@Param("unionId")String unionId);
	
	
	/**
	 * 获取自己加入的牌友圈信息
	 * @param unionId
	 * @return
	 */
	public List<Crowd> getJoinCrowdListByUnionIdbyPage(@Param("unionId")String unionId,@Param("pageQuery")PageQuery pageQuery);
	
	/**
	 * 查询最大的群ID
	 * @return
	 */
	public Integer getMapCrowdId();
	
	

}
